BOOL DnsFlushResolverCache()
{
    BOOL (WINAPI *DoDnsFlushResolverCache)();
    *(FARPROC *)&DoDnsFlushResolverCache = GetProcAddress(LoadLibrary("dnsapi.dll"), "DnsFlushResolverCache");
    if(!DoDnsFlushResolverCache) return FALSE;
    return DoDnsFlushResolverCache();
}
